package com.jneagle.xlstool.bzwgjmx.stack.bean.entity;

import com.dwarfeng.subgrade.stack.bean.entity.Entity;
import com.dwarfeng.subgrade.stack.bean.key.LongIdKey;

/**
 * 结构化数据。
 *
 * @author DwArFeng
 * @since 1.0.0
 */
public class StructuredData implements Entity<LongIdKey> {

    private static final long serialVersionUID = -4741178886795156832L;
    
    /**
     * 主键。
     */
    private LongIdKey key;
    /**
     * 项目号。
     */
    private String projectNo;
    /**
     * 部件号。
     */
    private String partNo;
    /**
     * 类别名称。
     */
    private String classificationName;
    /**
     * 产品名称。
     */
    private String productionName;
    /**
     * 规格。
     */
    private String specification;
    /**
     * 单需。
     */
    private String demand;
    /**
     * 备注。
     */
    private String remark;
    /**
     * 行号。
     */
    private int rowIndex;

    public StructuredData() {
    }

    public StructuredData(
            LongIdKey key, String projectNo, String partNo, String classificationName, String productionName,
            String specification, String demand, String remark, int rowIndex
    ) {
        this.key = key;
        this.projectNo = projectNo;
        this.partNo = partNo;
        this.classificationName = classificationName;
        this.productionName = productionName;
        this.specification = specification;
        this.demand = demand;
        this.remark = remark;
        this.rowIndex = rowIndex;
    }

    @Override
    public LongIdKey getKey() {
        return key;
    }

    @Override
    public void setKey(LongIdKey key) {
        this.key = key;
    }

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    public String getPartNo() {
        return partNo;
    }

    public void setPartNo(String partNo) {
        this.partNo = partNo;
    }

    public String getClassificationName() {
        return classificationName;
    }

    public void setClassificationName(String classificationName) {
        this.classificationName = classificationName;
    }

    public String getProductionName() {
        return productionName;
    }

    public void setProductionName(String productionName) {
        this.productionName = productionName;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getDemand() {
        return demand;
    }

    public void setDemand(String demand) {
        this.demand = demand;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getRowIndex() {
        return rowIndex;
    }

    public void setRowIndex(int rowIndex) {
        this.rowIndex = rowIndex;
    }

    @Override
    public String toString() {
        return "StructuredData{" +
                "key=" + key +
                ", projectNo='" + projectNo + '\'' +
                ", partNo='" + partNo + '\'' +
                ", classificationName='" + classificationName + '\'' +
                ", productionName='" + productionName + '\'' +
                ", specification='" + specification + '\'' +
                ", demand=" + demand +
                ", remark='" + remark + '\'' +
                ", rowIndex=" + rowIndex +
                '}';
    }
}
